from base import redis
game_uid_key = 'game_uid'

def gen_guid():
    red = redis.getRedis()
    if not red:
        return -1
    return red.hincrby(game_uid_key)    